#include "menumain.h"
#include "ui_menumain.h"
#include<QTime>
Menumain::Menumain(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Menumain)
{
    ui->setupUi(this);
    SetDate();
    InitUi();
    Initconnect();
}

void Menumain::Initconnect(){
    connect(ui->Quit_Btn,&QPushButton::clicked,this,&Menumain::close);
    connect(ui->deepseek_Btn,&QPushButton::clicked,this,&Menumain::ShowDeepseek);
}
void Menumain::InitUi(){
    deepseekUi = new DeepSeek();
    deepseekUi->hide();
}
void Menumain::SetDate(){
    ui->timeEdit->setTime(QTime::currentTime());
    ui->timeEdit->setDisplayFormat("HH:mm:ss");
}
void Menumain::ShowDeepseek(){
    this->hide();
    deepseekUi->show();
}
Menumain::~Menumain()
{
    delete ui;
}

